package net.csdn.business.kanban.common.domain.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName KanbanFieldResp
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/19
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class KanbanFieldParam {
    @NotBlank
    @Schema(name = "kanban_id", description = "看板ID")
    private String kanbanId;

    @NotBlank
    @Schema(name = "field_name", description = "字段名称")
    private String fieldName;

    @NotNull
    @Schema(name = "field_type", description = "字段类型 0:text 1:number 2:date 3:single select 4:iteration",allowableValues = {"0","1","2","3","4"})
    private Integer fieldType;

    @Schema(name = "fieldSettings", description = "字段属性")
    private FieldSettings fieldSettings;

    @NotNull
    @Schema(name = "currUserId", description = "当前用户ID")
    private String currUserId;
}
